package com.cncbox.service;

import com.cncbox.dto.EnhanceArticle;
import com.cncbox.entity.Article;
import com.cncbox.entity.NoteResult;

/**
 * @author Develop_Peng
 * @version V1.0
 * @Package com.cncbox.service
 * @Description: 文章服务类
 * @date 2016/3/31 11:24
 */
public interface ArticleService {

    //添加文章类
    NoteResult addArticle(EnhanceArticle enhanceArticle) throws Exception;

    //根据分类获取数据列表
    NoteResult selectOrderByClass(Article article) throws Exception;

    //修改前查询数据
    NoteResult queryArticleById(Integer id) throws Exception;

    //修改文章
    NoteResult updateByResourceId(EnhanceArticle enhanceArticle) throws Exception;

    //删除文章
    NoteResult removeArticleById(Integer id) throws Exception;

    //根据分类&状态来获取数据列表
    NoteResult selectStatusOrderByClass(Article article, Integer pageNo, Integer pageSize) throws Exception;

    //查询文章根据Id
    NoteResult queryContentById(Integer id) throws Exception;


}
